﻿@model ErrorViewModel
@{
    ViewData["Title"] = "Error";
    Model.RequestId = System.Diagnostics.Activity.Current?.Id ?? this.Context.TraceIdentifier;
}
<div style="background: url(/images/error.jpg) no-repeat;background-color:#f5f4f2;position:absolute;left: 50%;width: 1000px;height: 520px;FONT-WEIGHT: 500;margin-left: -500px;">
    <div style="float:right">
        <div id="errorText">
            <h1>Sorry...系统出错了！@Model.Code</h1>
            <p style="margin: 1.5em;width: 600px;">@Model.ErrorMessage</p>
            <p style="margin: 1.5em;width: 600px;">
                请不要担心，这没事。如果该资源对你很重要，火星不太安全，我可以免费送你回地球！
            </p>
        </div>
        <a class="btn btn-link" href="/home/index" title="返回首页">
            返回首页
        </a>
        @if (!string.IsNullOrEmpty(Model.RequestId))
        {
            <p>
                <strong>Request ID:</strong> <code>@Model.RequestId</code>
            </p>
        }
    </div>
</div>